/**
 * Copyright(c) Hainan eKing Technology co., LTD
 *
 * @date 2013年9月16日
 * 	
 * Original Author: 郑兴(zhengxing)
 *
 * ChangeLog
 *
 */
package com.hnas.sys.core.spring;

import java.security.Principal;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;

/**
 * @author 郑兴(zhengxing)
 * 
 */
public class ADTNtlmHttpServletRequest extends HttpServletRequestWrapper {
	Principal principal;

	public ADTNtlmHttpServletRequest(HttpServletRequest req, Principal principal) {
		super(req);
		this.principal = principal;
	}

	/**
	 * 
	 */
	public String getRemoteUser() {
		return principal.getName();
	}

	/**
	 * 
	 */
	public Principal getUserPrincipal() {
		return principal;
	}

	/**
	 * 
	 */
	public String getAuthType() {
		return "NTLM";
	}
}
